package com.wwwarehouse.resource_center.bean.defindeobjectstore;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * @创建者 chenchao.
 * @创建时间 2017/10/28 13:27
 * @描述 ${TODO}
 */

public class DefinedDetailBean implements Parcelable {

    /**
     * countUnknowInventory : 测试内容x12p
     * defaultInventory : 测试内容44t3
     * inTheStock : 测试内容8nih
     * inventoryDefinitionUkid : 34721
     * inventoryPropertyRight : ["string1","string2","string3","string4","string5"]
     * inventoryProxy : ["string1","string2","string3","string4","string5"]
     * name : 测试内容39vh
     * outsideTheStock : 测试内容b12o
     * ownerUkid : 21221
     * quality : ["string1","string2","string3","string4","string5"]
     */

    private String countUnknowInventory;
    private String       defaultInventory;
    private String       inTheStock;
    private long          inventoryDefinitionUkid;
    private String       name;
    private String       outsideTheStock;
    private long          ownerUkid;
    private List<String> inventoryPropertyRight;
    private List<String> inventoryProxy;
    private List<String> quality;

    public String getCountUnknowInventory() {
        return countUnknowInventory;
    }

    public void setCountUnknowInventory(String countUnknowInventory) {
        this.countUnknowInventory = countUnknowInventory;
    }

    public String getDefaultInventory() {
        return defaultInventory;
    }

    public void setDefaultInventory(String defaultInventory) {
        this.defaultInventory = defaultInventory;
    }

    public String getInTheStock() {
        return inTheStock;
    }

    public void setInTheStock(String inTheStock) {
        this.inTheStock = inTheStock;
    }

    public long getInventoryDefinitionUkid() {
        return inventoryDefinitionUkid;
    }

    public void setInventoryDefinitionUkid(long inventoryDefinitionUkid) {
        this.inventoryDefinitionUkid = inventoryDefinitionUkid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getOutsideTheStock() {
        return outsideTheStock;
    }

    public void setOutsideTheStock(String outsideTheStock) {
        this.outsideTheStock = outsideTheStock;
    }

    public long getOwnerUkid() {
        return ownerUkid;
    }

    public void setOwnerUkid(long ownerUkid) {
        this.ownerUkid = ownerUkid;
    }

    public List<String> getInventoryPropertyRight() {
        return inventoryPropertyRight;
    }

    public void setInventoryPropertyRight(List<String> inventoryPropertyRight) {
        this.inventoryPropertyRight = inventoryPropertyRight;
    }

    public List<String> getInventoryProxy() {
        return inventoryProxy;
    }

    public void setInventoryProxy(List<String> inventoryProxy) {
        this.inventoryProxy = inventoryProxy;
    }

    public List<String> getQuality() {
        return quality;
    }

    public void setQuality(List<String> quality) {
        this.quality = quality;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.countUnknowInventory);
        dest.writeString(this.defaultInventory);
        dest.writeString(this.inTheStock);
        dest.writeLong(this.inventoryDefinitionUkid);
        dest.writeString(this.name);
        dest.writeString(this.outsideTheStock);
        dest.writeLong(this.ownerUkid);
        dest.writeStringList(this.inventoryPropertyRight);
        dest.writeStringList(this.inventoryProxy);
        dest.writeStringList(this.quality);
    }

    public DefinedDetailBean() {
    }

    protected DefinedDetailBean(Parcel in) {
        this.countUnknowInventory = in.readString();
        this.defaultInventory = in.readString();
        this.inTheStock = in.readString();
        this.inventoryDefinitionUkid = in.readLong();
        this.name = in.readString();
        this.outsideTheStock = in.readString();
        this.ownerUkid = in.readLong();
        this.inventoryPropertyRight = in.createStringArrayList();
        this.inventoryProxy = in.createStringArrayList();
        this.quality = in.createStringArrayList();
    }

    public static final Parcelable.Creator<DefinedDetailBean> CREATOR = new Parcelable.Creator<DefinedDetailBean>() {
        @Override
        public DefinedDetailBean createFromParcel(Parcel source) {
            return new DefinedDetailBean(source);
        }

        @Override
        public DefinedDetailBean[] newArray(int size) {
            return new DefinedDetailBean[size];
        }
    };
}
